package com.crm.CLdriving.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import com.crm.CLdriving.config.RedisConfigProperties;
import com.crm.CLdriving.dto.resp.StudentSelectRespDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.crm.CLdriving.mapper.CeshiMapper;
import com.crm.CLdriving.service.StudentService;
import com.crm.CLdriving.util.Thread.ThreadPoolManager;
import com.crm.CLdriving.util.token.TokenUtils;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;

@Controller
@RequestMapping("cl")
@Log4j2
@Api(tags = "测试")
public class ceshiController {

	ThreadPoolManager threadpool = ThreadPoolManager.newInstance();
	@Autowired
	private CeshiMapper ceshiMapper;
	@Autowired
	private StudentService studentService;

	@Autowired
	private RedisConfigProperties redisConfigProperties;
	


	@GetMapping("cl")
	@ResponseBody
	@ApiOperation("token测试")
	public String tokenceshi(HttpServletResponse response) throws IOException {
		return "hello  word ！！"+redisConfigProperties.toString();
	}

}
